package edu.sctu.zhuyingzhi.month201506.day20150618.awtTest;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;

/**
 * Created by user13 on 2015/6/18.
 */
public class ActionListen1 {


    public static  void Actionlistens(){
        Frame frame = new Frame("监听行为练习");
        Button b = new Button("Press me!");


        b.addActionListener(new Even1());

        frame.setLayout(new FlowLayout());
        frame.add(b);
        frame.setSize(200,200);
        frame.setVisible(true);

    }
}
